`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company: 
// Engineer: 
// 
// Create Date:    12:50:45 05/02/2014 
// Design Name: 
// Module Name:    OneHotMux 
// Project Name: 
// Target Devices: 
// Tool versions: 
// Description: 
//
// Dependencies: 
//
// Revision: 
// Revision 0.01 - File Created
// Additional Comments: 
//
//////////////////////////////////////////////////////////////////////////////////
module OneHotMux( a,b,c,d,e,f,g,h,sel,out  );
	input [11:0] a,b,c,d,e,f,g,h;
	input [7:0] sel;
	output reg [11:0] out;
	
always @ (*) begin
	case (sel)
		8'b10000000: out = a;
		8'b01000000: out = b;
		8'b00100000: out = c;
		8'b00010000: out = d;
		8'b00001000: out = e;
		8'b00000100: out = f;
		8'b00000010: out = g;
		8'b00000001: out = h;
		default: out = a;
	endcase
end
endmodule
